

















































<html>
<head>
<title>Login page for STB</title>
                      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    </head>

    <script language="javascript">

/* Mod by l00128386 B350 EaagdF020 问题单号：AK7D02815 at <Nov 27, 2008> begin */

/* java变量与js 变量转换*/
var isSucessed = true;
var isWriteBox = true;
var needWriteTSP = true;
function AuthFinish()
{
  /* 认证成功才写入 */
  var tempKey = "";


  /* Mod by l00128386 B350 EaagdF020 问题单号：AK7D02803 at <Nov 27, 2008> begin */
  /* Mod by l00128386 B350 EaagdF020 at <Nov 27, 2008> begin */
  if(isSucessed)
  /* Mod by l00128386 B350 EaagdF020 at <Nov 27, 2008> end */
  {
    Authentication.CUSetConfig('IsPostLog','0');
    setStbParmList();

    //把SQARtcpPort端口下发给盒子 add by nkf36498 at 2011.04.1
    Authentication.CUSetConfig('SQARtcpPort','8027');

    /* 容灾状态这些值没必要再下发给盒子了*/
    if(isWriteBox)
    /* Mod by l00128386 B350 EaagdF020 问题单号：AK7D02815 at <Nov 27, 2008> end*/
    {
      Authentication.CUSetConfig('UserToken','0D60DB1B3237742D984202CA70327C31');
      Authentication.CUSetConfig('EPGDomain','http://10.11.185.29:33200/EPG/jsp/GDXMTCS/en/Category.jsp');
      Authentication.CUSetConfig('EPGDomainBackup','null');
      Authentication.CUSetConfig('ManagementDomain','null');
      Authentication.CUSetConfig('ManagementDomainBackup','null');
      Authentication.CUSetConfig('UpgradeDomain','http://10.11.185.11:8082');
      Authentication.CUSetConfig('UpgradeDomainBackup','http://10.11.185.12:33600');
      Authentication.CUSetConfig('NTPDomain','10.11.184.14');
      Authentication.CUSetConfig('EPGGroupNMB','GDXMTCS');


      Authentication.CUSetConfig('UserGroupNMB','100');
      Authentication.CUSetConfig('PackageIDs','-1');

      /* *** Add by h00112646 for AB4D07234 at 2008-10-11 begin *** */
      Authentication.CUSetConfig('NTPDomainBackup','null');
      /* *** Add by h00112646 for AB4D07234 at 2008-10-11 end *** */
      if(false)
      {
        /* *** Add by z00128504 for AK7D02317 at 2008-11-14 begin *** */
        /* *** Add by z00128504 for IPTVCUSTOMPROBLEM-42  at 2010-10-21 begin *** */
        if(true)
        {
          Authentication.CUSetConfig('NetUserID','null');
        }
        /* *** Add by z00128504 for IPTVCUSTOMPROBLEM-42  at 2010-10-21 end *** */
        /* *** Add by z00128504 for AK7D02317 at 2008-11-14 end *** */
      }

      //	Authentication.CUSetConfig('shareKey','aAcCeEdDfD');
      /* Add by l00128386 B350 EaagdF020 at <Nov 27, 2008> begin */
      /* *** Add by h00112646 for AB4D07153 at 2008-9-25 begin *** */
      Authentication.CUSetConfig('areaid','100');
      /* *** Add by h00112646 for AB4D07153 at 2008-9-25 end *** */
      if(true)

      {
        Authentication.CUSetConfig('templateName','GDXMTCS');
      }

      /* Add by l00128386 B350 EaagdF020 at <Nov 27, 2008> end */
    }

    Authentication.CUSetConfig('shareKey','aAcCeEdDfD');
    /* *** Add by h00112646 for AB4D07251 at 2008-10-12 begin *** */
    Authentication.CUSetConfig('LogServerUrl','ftp://IP:port@username&Huawei#1');
    Authentication.CUSetConfig('LogUploadInterval','3600');
    Authentication.CUSetConfig('LogRecordInterval','3600');
    Authentication.CUSetConfig('EPGUrl','http://10.11.185.29:33200/EPG/jsp/indexHWCU.jsp');
    /* *** Add by h00112646 for AB4D07251 at 2008-10-12 end *** */

    /* *** Add by h00112646 for AB4D07239 at 2008-10-11 begin *** */
    //写用户认证通过标志
    Authentication.CUSetConfig('UserStatus','1');
    /* *** Add by h00112646 for AB4D07239 at 2008-10-11 end *** */

    if(needWriteTSP)
    {
      Authentication.CUSetConfig('TransportProtocol','3');
    }

    Authentication.CUSetConfig('MQMCURL','10.11.185.22');
    //认证成功后,非空的PPPoE才写入机顶盒.
    /* *** Mod by h00112646 for AB4D07340:只能放在最后写入,详见问题单 at 2008-10-29 begin *** */

    /** IPTV Solution R003C52 (广东C52升级验证/STB)裕兴的EC1308G不能展示tvms消息 start .. **/
    /*****added by d43226 for [C05B500] 2009-11-04 begin****/
    var stbType= Authentication.CUGetConfig("STBType");
    if(stbType == "PCCLIENT")
    {
      var UserID = "gzxmt41";
      var UserPwd = "";
      tosave(UserID,UserPwd);
    }
    else
    {
      setSTBConfig();
    }
    /** IPTV Solution R003C52 (广东C52升级验证/STB)裕兴的EC1308G不能展示tvms消息 end .. **/

    Authentication.CUSetConfig('SessionID','F9199FC4EE03FE849D5D614F4235EA12');
    /* *** Mod by h00112646 for AB4D07340 at 2008-10-29 end *** */

    tempKey = Authentication.CUGetConfig('identityEncode');


  }

  var _nextURL = "getchannellistHWCU.jsp?channellisttype=0&UserToken=0D60DB1B3237742D984202CA70327C31";

  if(Authentication.CUGetConfig("STBType") == "PCCLIENT")
  {
    _nextURL = "pcc_" + _nextURL;
  }
  /*****added by d43226 for [C05B500] 2009-11-04 end****/

  if(_nextURL.indexOf("?") > 0)
  {
    _nextURL = _nextURL + "&tempKey=" + tempKey;
  }
  else
  {
    _nextURL = _nextURL + "?tempKey=" + tempKey;
  }

  //此处添加判断条件。成功的同时，如果支持产品到期提示
  if(isSucessed && false)
  {
    _nextURL = "ShowWarn4ProductCU.jsp?NextURL=" + _nextURL;
  }

  //此处添加判断条件。成功的同时，如果新开卡或者是卡的有效期要到了，则进下面的提示页面，否则不进
  if(isSucessed && false)
  {
    if(Authentication.CUGetConfig("STBType") == "PCCLIENT")
    {
      _nextURL = "pcc_ShowCardUserStatus.jsp?NextURL=" + _nextURL;
    }
    else
    {
      _nextURL = "ShowCardUserStatusCU.jsp?NextURL=" + _nextURL;
    }
  }

  window.location.href = _nextURL;
  /* Mod by l00128386 B350 EaagdF020 问题单号：AK7D02803 at <Nov 27, 2008> end*/
}


function setSTBConfig()
{
  Authentication.CUSetConfig('UserID','gzxmt41');

  // CR20090608031 开发 z00128385 at 2009-06-16 begin
  Authentication.CUSetConfig('TVMSHeartbitUrl','http://www.TVMSHeartbitUrl.com');
  Authentication.CUSetConfig('TVMSVODHeartbitUrl','http://www.TVMSVODHeartbitUrl.com');
  Authentication.CUSetConfig('TVMSHeartbitInterval','600');
  Authentication.CUSetConfig('TVMSDelayLength','60');
  // CR20090608031 开发 z00128385 at 2009-06-16 end
  // l00136076 AK7D06415

  //下发开机画面
  var bootLogo = "http://10.11.185.11:8082/EDS/jsp/loadBootpic.jsp?STBType=UNT400G&areaid=10010&PicType=LOGO&userId=gzxmt41&userGroupId=100&isIndiv=1";
  var authenBack = "http://10.11.185.11:8082/EDS/jsp/loadBootpic.jsp?STBType=UNT400G&areaid=10010&PicType=AUTHEN&userId=gzxmt41&userGroupId=100&isIndiv=1";
  var bootLogo_old = Authentication.CUGetConfig("PADBootLogPicURL");
  var authenBack_old = Authentication.CUGetConfig("PADAuthenBackgroundPicURL");
  var isSupportAD = "0";
  /*mod by q00188198 for C57 US.IPTVV1R3C57.014.001.MEM.005 2011-11-04 begin*/
  //对接广告平台时
  if(1 == isSupportAD)
  {
    if(bootLogo != '' && bootLogo != 'null')
    {
      if (bootLogo != bootLogo_old)
      {
        Authentication.CUSetConfig("PADBootLogPicURL", bootLogo);
      }
    }
    if (authenBack != '' && authenBack != 'null')
    {
      if (authenBack != authenBack_old)
      {
        Authentication.CUSetConfig("PADAuthenBackgroundPicURL", authenBack);
      }
    }
  }
  else
  {
    //个性化开机画面流程
    if(bootLogo != '' && bootLogo != 'null')
    {

      if(-1==bootLogo.indexOf("FILENAME="))
      {
        //如果不带FILENAME字段说明EPG没有匹配到策略，这时再发请求在UPG端再进行匹配
        Authentication.CUSetConfig("PADBootLogPicURL", bootLogo);
      }
      else
      {
        //截取出filename进行比较
        var bootLogo_filename = bootLogo.substring(bootLogo.indexOf("FILENAME=")+"FILENAME=".length, bootLogo.indexOf("&userId="));
        var bootLogo_old_filename = bootLogo_old.substring(bootLogo_old.indexOf("FILENAME=")+"FILENAME=".length, bootLogo_old.indexOf("&userId="));
        if (bootLogo_filename != bootLogo_old_filename)

        {
          Authentication.CUSetConfig("PADBootLogPicURL", bootLogo);
        }
      }
    }
    if (authenBack != '' && authenBack != 'null')
    {


      if(-1==authenBack.indexOf("FILENAME="))
      {
        Authentication.CUSetConfig("PADAuthenBackgroundPicURL", authenBack);
      }
      else
      {
        //截取出filename进行比较
        var authenBack_filename =authenBack.substring(authenBack.indexOf("FILENAME=")+"FILENAME=".length, authenBack.indexOf("&userId="));
        var authenBack_old_filename = authenBack_old.substring(authenBack_old.indexOf("FILENAME=")+"FILENAME=".length, authenBack_old.indexOf("&userId="));
        if (authenBack_filename != authenBack_old_filename)
        {
          Authentication.CUSetConfig("PADAuthenBackgroundPicURL", authenBack);
        }
      }
    }
  }
  /*mod by q00188198 for C57 US.IPTVV1R3C57.014.001.MEM.005 2011-11-04 end*/
  Authentication.CUSetConfig("ResServerUrl", "http://10.11.185.11:8082" + "/EDS/jsp/loadBootpic.jsp");

  Authentication.CUStartUpdate();
}
function setStbParmList()
{

}
</script>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"
bgcolor="transparent" onload=AuthFinish()>
    <form action="getchannellistHWCU.jsp?channellisttype=0&UserToken=0D60DB1B3237742D984202CA70327C31" name="authform" method="post">
    <table width="640" height="340" border="0">
    <tr>
    <td width="640" height="300"></td>
    </tr>
    <tr>
    </tr>
    </table>
    <input type="hidden" name="conntype"
value=""></form>
    </body>
    </html>
